package com.netease.task.dao;

import com.netease.task.meta.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper {

    List<Order> getOrders();

    int addOrder(Order order);

    Order getOrderByBookId(Integer bookId);

    int updateOrderByBookId(Integer bookId,Integer num);

    List<Order> getOrderByType(Integer isComplete);

    int updateIsComplete(Date date);

}
